#include<iostream>
#include<vector>
#include<algorithm>
#include<ctime>
using namespace std;
int main()
{
	vector<int> vec;
	int n;
	int a=1;
	cout<<"cin a number"<<endl;
	cin>>n;
	for(int i=0;i<n;i++)
	{
		vec.push_back(a);
		a++;
	}
	srand((unsigned)time(NULL));
	random_shuffle(vec.begin(),vec.end());
	for(int i=0;i<n;i++)
		cout<<vec[i]<<endl;
	return 0;
}
